<template>
  <div>
    <cart-header></cart-header>
    <div class="dxcartbg">
      <!-- 面包屑 -->
      <div class="w1200">
        <p class="bread-crumb">
          <a href="/" title="爱发表网">首页</a> &gt;
          <a href="" title="会员中心">会员中心</a> &gt;
          <span>填写核对订单信息</span>
        </p>
      </div>

      <div class="w1200">
        <div>
          <div class="my_cart_box">
            <div class="bg-box"></div>
            <ul class="order_step">
              <li class="current_prev">
                <span class="first">1、查看购物车</span>
              </li>
              <li class="current"><span>2、填写核对订单信息</span></li>
              <li class="last"><span>3、成功提交订单</span></li>
            </ul>
          </div>

          <div class="goods_list table-list dbxnbor">
            <form name="order" action="/shop/cart/submit/" method="post">
              <table>
                <thead>
                  <tr style="height: 56px">
                    <th width="30"></th>
                    <th style="font-size: 16px; text-align: left">
                      <span style="margin-left: 5px">收货地址</span>
                    </th>
                    <th width="30"></th>
                  </tr>
                </thead>
                <tbody>
                  <tr style="background-color: #fff">
                    <td width="30"></td>
                    <td class="addressbox">
                      <input type="hidden" name="address[name]" value="" />
                      <input type="hidden" name="address[mobile]" value="" />
                      <input type="hidden" name="address[province]" value="" />
                      <input type="hidden" name="address[city]" value="" />
                      <input type="hidden" name="address[county]" value="" />
                      <input type="hidden" name="address[address]" value="" />

                      <div class="letter-outer">
                        <div class="letter-box">
                          <ul class="letter-con after-clear">
                            <li style="width: 300px" id="addr1">
                              <span>收货人：</span><b></b> <b></b>
                            </li>
                            <li style="width: 600px" id="addr2">
                              <span>收货地址：</span>
                            </li>
                            <li style="width: 150px; text-align: right">
                              <a href="javascript:;" id="addr3">修改</a>
                            </li>
                            <ul></ul>
                          </ul>
                        </div>
                      </div>
                    </td>
                    <td width="30"></td>
                  </tr>
                </tbody>
              </table>
              <div class="cartgapline"></div>
              <table style="background-color: #fff">
                <thead>
                  <tr style="height: 50px">
                    <th width="35"></th>
                    <th width="100" style="font-size: 16px; text-align: left">
                      商品信息
                    </th>
                    <th align="left"></th>
                    <th width="150">起订时间</th>
                    <th width="100">市场价</th>
                    <th width="120">数量</th>
                    <th width="150">优惠</th>
                    <th width="100">小计</th>
                    <th width="35"></th>
                  </tr>
                </thead>
                <tfoot>
                  <tr>
                    <td></td>
                    <td colspan="7" style="position: relative">
                      <div class="order_info order_memo">
                        <div class="order_info_bar">订单备注</div>
                        <textarea
                          name="memo[]"
                          class="input-text"
                          style="width: 100%; height: 75px"
                        ></textarea>
                      </div>

                      <input type="hidden" name="invoice" value="" />

                      <div class="order_info calc_info">
                        <div class="order_info_bar">结算信息</div>
                        商品共计 1 件， 重 500 g； 总金额： 商品总价
                        <span class="cart_sell">720.00</span> (已优惠
                        <span class="cart_coupon">80.00</span>) + 税金
                        <span class="cart_invoice">64.80</span>

                        + 运费 <span class="cart_express">0</span>
                      </div>
                      <div class="cart_info">
                        <div class="invoice_info">
                          是否需要发票？（税率：¥ 9%）
                          <input type="checkbox" name="invoice" value="1" />
                          <span style="">
                            发票抬头信息和纳税人识别号：
                            <input
                              type="text"
                              name="invoice_title"
                              s="发票抬头信息和纳税人识别号"
                              class="input-text input-text-big"
                              value=""
                              validate="required"
                              style="width: 250px"
                            />
                          </span>
                        </div>

                        应付总额：<span class="cart_total"
                          ><i>¥</i
                          ><span class="cart_price_total">784.80</span></span
                        >元
                        <div class="clear"></div>
                      </div>

                      <div class="cart_but cart_but_btn">
                        <a
                          @click="jump('/cart3')"
                          name="order_submit"
                          class="input-but"
                          >确认无误，提交订单</a
                        >
                      </div>
                    </td>
                    <td></td>
                  </tr>
                  <tr>
                    <td colspan="12">
                      <div class="h50"></div>
                    </td>
                  </tr>
                </tfoot>
                <tbody
                  style="
                    border: none;
                    border-bottom: 10px solid #ebebeb;
                    padding-bottom: 10px;
                  "
                >
                  <tr>
                    <td></td>
                    <td style="text-align: left">
                      <p class="cart_img" style="text-align: left">
                        <img
                          src="/img/19c25_18163.jpg"
                          width="75"
                          height="100"
                        />
                      </p>
                    </td>
                    <td>
                      <h4 class="cart_title">
                        <a href="/xwyjdk/" target="_blank">新闻研究导刊</a>
                      </h4>
                      <ul class="cart_spec">
                        <li><span class="cart_goods_spec_name"></span></li>
                      </ul>
                    </td>
                    <td align="center">
                      <select
                        style="width: 120px"
                        class="input-text"
                        name="memo[10186]"
                      >
                        <option value="起订时间：2023年01月">2023年01月</option>
                        <option value="起订时间：2023年02月">2023年02月</option>
                        <option value="起订时间：2023年03月">2023年03月</option>
                        <option value="起订时间：2023年04月">2023年04月</option>
                        <option value="起订时间：2023年05月">2023年05月</option>
                        <option value="起订时间：2023年06月">2023年06月</option>
                        <option value="起订时间：2023年07月">2023年07月</option>
                        <option value="起订时间：2023年08月">2023年08月</option>
                        <option value="起订时间：2023年09月">2023年09月</option>
                        <option value="起订时间：2023年10月">2023年10月</option>
                        <option value="起订时间：2023年11月">2023年11月</option>
                        <option value="起订时间：2024年00月">2024年00月</option>
                      </select>
                    </td>
                    <td align="center">800.00</td>
                    <td align="center">1 件</td>
                    <td id="note_10186" align="center">
                      <!---->
                      9.0折
                    </td>
                    <td align="center" class="cart_price">¥ 720.00</td>
                  </tr>

                  <tr>
                    <td>
                      <div class="h10"></div>
                    </td>
                  </tr>
                </tbody>
              </table>
            </form>
          </div>
        </div>
      </div>

      <div class="h20"></div>
    </div>
    <cart-footer></cart-footer>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    jump(path) {
      this.$router.push({
        path: "/cart3",
      });
    },
  },
  beforeRouteEnter(to, from, next) {
    // 添加背景色 margin:0;padding:0是为了解决vue四周有白边的问题
    document.querySelector("body").setAttribute("style", "margin:0;padding:0");
    next();
  },
};
</script>

<style lang="scss" scoped>
.bread-crumb {
  padding: 22px 0 22px 0;
  font-size: 13px;
  color: #fff;
  background: #219bd9;
}
a {
  color: #333;
  text-decoration: none;
}
.dxcartbg {
  /* height: 610px; */
  margin: 5px auto;
  background-color: #219bd9;
  box-sizing: border-box;
}

.bread-crumb a {
  color: #fff;
}

.w1200 {
  width: 1284px;
  margin: auto;
}

.my_cart_box {
  height: 138px;
  background-color: #fff;
}

.my_cart_box > .bg-box {
  float: left;
  width: 30%;
  height: 100px;
  margin-top: 19px;
  background: #fff url(/public/img/mycart.gif) no-repeat 60px 26px;
}

.order_step {
  margin: 53px 46px 0px 0px;
  width: 652px;
  height: 32px;
  line-height: 32px;
  float: right;
}

.order_step li.current_prev {
  background-position: right -114px;
  color: #fff;
  background-color: #ed6807;
}

.order_step li {
  background: url(/public/img/mycart.gif) no-repeat right -82px #ffe8d7;
  padding: 0px 29px 0px 0px;
  width: 188px;
  height: 32px;
  color: #ccc;
  overflow: hidden;
  font-size: 14px;
  font-weight: bold;
  float: left;
  text-align: center;
}

.order_step li.current_prev .first {
  background-position: 0px -178px;
}

.order_step li .first {
  background: url(/public/img/mycart.gif) no-repeat 0px -146px;
}

.order_step li span {
  display: block;
}

.order_step li.current_prev {
  background-position: right -114px;
  color: #fff;
  background-color: #ed6807;
}

.order_step li.current {
  background-position: right -82px;
  color: #fff;
  background-color: #ed6807;
}

.order_step li.last {
  background-position: right -210px;
}

.dbxnbor {
  margin-top: 20px;
}

.dbxnbor {
  padding: 0;
}

.dbxnbor table {
  margin: 0;
}

.table-list table {
  width: 100%;
  margin: 10px 0;
  border-collapse: collapse;
  border: none;
}

.thead {
  display: table-header-group;
  vertical-align: middle;
  border-color: inherit;
}

.table {
  /* border-collapse: separate; */
  text-indent: initial;
  border-spacing: 2px;
  text-indent: initial;
  border-spacing: 2px;
}

.table-list table {
  /* width: 100%; */
  /* margin: 10px 0; */
  border-collapse: collapse;
  /* border: none; */
}

.dbxnbor table thead tr {
  background-color: #fff;
  border: none;
  border-bottom: 1px solid #f5f5f5;
}

.table-list table thead tr {
  /* height: 30px; */
  text-align: center;
  /* background-color: #f1f1f1; */
}

.dbxnbor table thead th {
  border: none;
  height: 27px;
}

.table-list table thead th {
  /* border: 1px solid #f5f5f5; */
  height: 27px;
  color: #333;
}

.dbxnbor table tbody {
  border: none;
}

.tbody {
  display: table-row-group;
  vertical-align: middle;
  border-color: inherit;
}

.input[type="hidden" i] {
  appearance: none;
  /* background-color: initial; */
  cursor: default;
  display: none !important;
  /* padding: initial; */
  /* border: initial; */
}

.input {
  writing-mode: horizontal-tb !important;

  text-rendering: auto;
  color: fieldtext;
  letter-spacing: normal;
  word-spacing: normal;
  line-height: normal;
  text-transform: none;
  text-indent: 0px;
  text-shadow: none;
  display: inline-block;
  text-align: start;
  appearance: auto;
  -webkit-rtl-ordering: logical;
}

.letter-outer {
  margin: 15px 5px;
}

.letter-box {
  border: 2px dashed #8eb9f5;
}

.letter-con {
  padding: 30px 20px;
  background-color: #fff;
}

.letter-con li {
  height: 30px;
  line-height: 30px;
  font-size: 14px;
  float: left;
}

.letter-con li a {
  padding: 5px 10px;
  font-size: 14px;
  color: #fff;
  background-color: #5590d6;
  border-radius: 5px;
  text-decoration: none;
}

.letter-con li span {
  color: #999;
}

.order_step li.last {
  background-position: right -210px;
}

.order_step li span {
  display: block;
}

.letter-con li b {
  font-size: 16px;
}

li {
  display: block;
  align-items: center;
  justify-content: flex-start;
}

.after-clear::after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.dbxnbor table tbody td {
  padding: 0;
}

.table-list table tbody tr {
  border-bottom: 0 dashed #ececec;
}

.cartgapline {
  width: 100%;
  /* height: 10px; */
  background-color: #ebebeb;
}

.goods_list .cart_title {
  height: 30px;
  line-height: 30px;
  font-size: 14px;
}

.goods_list .cart_spec {
  line-height: 20px;
  font-size: 12px;
}

.goods_list .cart_spec span {
  color: #666;
  margin-right: 5px;
}
.goods_list .cart_img {
  text-align: center;
}

.input-text {
  outline: medium;
  padding: 1px 5px;
  border: 1px solid #ccc;
  height: 26px;
  line-height: 26px;
  color: #333;
  font-family: arial;
  font-size: 14px;
  vertical-align: middle;
  color: #999;
}

.goods_list .cart_price {
  font-size: 14px;
  color: red;
}

.h10 {
  height: 10px;
  display: block;
  overflow: hidden;
}

.h20 {
  height: 20px;
  display: block;
  overflow: hidden;
}

.order_info {
  text-align: left;
  line-height: 30px;
  margin: 10px 0;
  font-size: 14px;
}

.order_info .order_info_bar {
  padding: 2px 0;
  border-bottom: 0 solid #dadada;
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: bold;
}

.goods_list .cart_info {
  margin: 15px 0;
  font-size: 14px;
}

.goods_list .cart_total {
  font-family: "Lucida Grande", Helvetica, Arial, Verdana, sans-serif, serif;
  font-size: 24px;
  font-weight: bold;
  color: red;
}

.clear {
  clear: both;
  font-size: 0;
  line-height: 0;
  height: 0;
}

.table-list table tfoot td {
  text-align: right;
}

.table-list table {
  width: 100%;
  margin: 10px 0;
  border-collapse: collapse;
  border: none;
}

.invoice_info {
  float: left;
  height: 40px;
  line-height: 40px;
  vertical-align: middle;
}

.h50 {
  height: 50px;
  display: block;
  overflow: hidden;
}

/* 提示框 */
.SD_bg {
  background: #333333;
  filter: alpha(opacity=30);
  -moz-opacity: 0.3;
  opacity: 0.3;
  width: 9px;
  height: 9px;
  overflow: hidden;
}

#SD_container {
  position: relative;
  z-index: 1005;
  background: #ffffff;
  border: 1px solid #888888;
  float: left;
}

#SD_container h3 {
  height: 30px;
  line-height: 30px;
  background: #f6f6f6;
  border-bottom: 1px solid #cdcdcd;
  text-indent: 10px;
  color: #336699;
  font-size: 14px;
  font-weight: bold;
  cursor: move;
}

#SD_body,
#SD_body div,
#SD_body p,
#SD_body td {
  color: #000000;
}

#SD_body {
  padding: 15px;
  white-space: normal;
}

table {
  display: table;
  border-collapse: separate;
  box-sizing: border-box;
  text-indent: initial;
  border-spacing: 2px;
  border-color: grey;
}

tfoot {
  display: table-footer-group;
  vertical-align: middle;
  border-color: inherit;
}

tr {
  display: table-row;
  vertical-align: inherit;
  border-color: inherit;
}

td {
  display: table-cell;
  vertical-align: inherit;
}

.input-but-small {
  padding: 8px 14px;
}

.input-but {
  outline: medium;
  padding: 12px 22px;
  margin-left: 5px;
  margin-right: 5px;
  border-radius: 5px;
  background-color: #c41921;
  color: #fff;
  font-family: arial;
  font-size: 14px;
  vertical-align: middle;
  text-decoration: none;
}

.input-but-small {
  padding: 8px 14px;
}

.input-but-cancel {
  background-color: #a2a2a2;
  color: #333;
}
</style>